/**
 * Created by Eran on 2015/12/3.
 */
public class Folder2Json {

    public static void main(String[] args) {
        System.out.println("");
        System.out.println("=======================");
        System.out.println("FOLDER 2 JSON");
        System.out.println("");
        System.out.println("Powered by  Eran");
        System.out.println("=======================");
        System.out.println("");
        if (args.length == 2) {
            Folder2JsonLogic logic = new Folder2JsonLogic();
            logic.execute(args[0], args[1]);
            System.out.println("");
            System.out.println("ALL DONE");
        } else {
            System.out.println("HOW TO USE :");
            System.out.println("you should provide 2 arguments , first one specify the folder you want scan , the second one specify the json file you want to export");
            System.out.println("");
            System.out.println("like: ");
            System.out.println("java -jar folder2json.jar C:\\testFolder E:\\out\\example.json");
            System.out.println("");
        }
    }

}
